window.onload = function (){
    var errorInfo= getQuery("errorInfo");
    if (errorInfo != null && errorInfo === "noland"){
        $("errorSpan").innerHTML="登录后才可以访问";
    }
}

function login(){
    axios.get("/user/login",{
        params:{
            userName:$("userName").value,
            pwd:$("pwd").value,
        }
    }).then(resp=>{
    var info=resp.data;
    console.info(info)
    if (info=="ok"){
        location.href="/menu.html";
    }else {

    }
    })
}